package CatDogduotai;

public class Demo {

	public static void main(String[] args) {
		
		Animal cat = new Cat("咪咪",3);
		cat.eatRice();
		
		System.out.println(cat.getAge()+","+cat.getName());
		
		Animal cat1 = (Animal)cat;
		cat1.eatRice();
		

	}
}